package com.ncmmall.domain.business.distribution;

import com.ncmmall.domain.security.user.WebUser;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * @author Samuel
 * @description 商家保底佣金记录
 * @date 2020-09-01 19:17
 */

@Entity
@Table(name = "distributor_rate_rerored")
@Access(AccessType.FIELD)
@Getter
@Setter
@Accessors(chain = true)
public class DistributionRateRecord {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 商家
     */
    @OneToOne
    private WebUser merchant;

    /**
     * 比例
     */
    private double guaranteeScale;

    /**
     * 创建时间
     */
    private Timestamp createTime;
}
